// 封装获取后台数据的接口方法

// const host = 'https://nideshop.ttxtouring.com'
// http://47.115.167.114:8082
const host = 'http://127.0.0.1:8360'
// const host = 'http://47.115.167.114:8360'

module.exports = {
  //首页url
  indexUrl: host + '/api/index/index',
  //分类商品列表详情页页url
  goodsUrl: host +'/api/goods/detail?id=',
  //专题url
  topicUrl: host + '/api/topic/list',
  //制造商url
  brandUrl: host + '/api/brand/list',
  //制造商详情Url
  brandDetailUrl: host + '/api/brand/detail?id=',
  //制造商详情列表数据Url
  brandDetailListUrl: host +'/api/goods/list?brandId=',
  // 购物车列表数据url
  addCartUrl: host + '/api/cart',

  //收货地址列表
  AddressList: host + '/api/address/list',  //收货地址列表
  AddAddress:host + '/api/address/save',//address/save保存收货地址
  AddressDetail: host + '/api/address/detail',  //收货地址详情
  DeleteAddress: host + '/api/address/delete',  //删除收货地址https://nideshop.ttxtouring.com/api/address/delete
  // https://nideshop.ttxtouring.com/api/address/detail

  // 收藏列表
  // https://nideshop.ttxtouring.com/api/collect/list
  CollectionList: host + '/api/collect/list?typeId=0',

  //足迹https://nideshop.ttxtouring.com/api/footprint/list
  FootPrint: host + '/api/footprint/list',

}